<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:s="http://jboss.com/products/seam/taglib"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:rich="http://richfaces.org/rich"
                template="/layout/template_box.xhtml"
                xmlns:a="http://richfaces.org/a4j">


  <ui:define name="head">
    <a:loadStyle src="/css/custom-theme/jquery-ui-1.8.2.custom.css"/>
    <!-- <a:loadScript src="/js/alertaInstituicao.js" />-->


  </ui:define>

  <ui:define name="MenuInterno">
    <ui:include src="/layout/menu_relatorios.xhtml"/>
  </ui:define>


  <ui:define name="body">

    <h2 class="t_dominio">Relatórios</h2>

    <div id="tamanho_div">

	<a:outputPanel id="pnlForm" ajaxRendered="true">
				<a:form id="formAlunoHome" styleClass="form_confea">
					<s:validateAll>

						<ol>

							<li>
								<fieldset>
									<legend>
										<h:outputText value="Filtros" />
									</legend>
								</fieldset>
							</li>
							
									
							<ui:include src="/componentes/estrutura_curso_select.xhtml"/>
							
							
							

							<li><s:decorate template="/layout/edit.xhtml" 
									id="decoInicio">
									<ui:define name="label">
								Período
							</ui:define>

									<rich:calendar id="inicio" styleClass="campo_half data"
										value="#{relatorioAvaliacoes.inicio}"
										datePattern="dd/MM/yyyy" disabled="false" required="false"
										rendered="true"
										requiredMessage="O campo 'Início' é obrigatório."
										enableManualInput="true"
										locale="pt"
										style="position: static;margin-left: 150px;">
										<f:validator validatorId="DataValidator" />
									</rich:calendar>

									<span style="padding:9px">Até</span>
									<rich:calendar id="fim" styleClass="campo_half data" dataInicio="inicio"
										value="#{relatorioAvaliacoes.fim}"
										datePattern="dd/MM/yyyy" disabled="false" required="false"
										rendered="true"
										locale="pt"
										requiredMessage="O campo 'Fim' é obrigatório."
										enableManualInput="true"
										style="position: static;margin-left: 150px;">
										<f:validator validatorId="DataValidator" />
										<f:validator validatorId="PeriodoValidator"/>
										
									</rich:calendar>


								</s:decorate>

								</li>

							
						</ol>
						

						<fieldset>
							<h:messages globalOnly="false" styleClass="tool_alerta" />
						</fieldset>

						<a:commandLink styleClass="btn" action="gerarRelatorio" 
							value="Gerar" reRender="pnlForm" />

					</s:validateAll>
				</a:form>
			</a:outputPanel>

    </div>
  </ui:define>

</ui:composition>
